home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Browsers, Managers & Extensions / CookieSwap 0.5 / cookieswap-0.5.0-fx.xpi / chrome / chromeFiles / content / cookieSwap.xul < prev    next >
Extensible Markup Language  |  2007-07-22  |  3KB  |  59 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- Overylay start...give it a name -->
  4. <overlay id="cookieSwapOverlay" 
  5.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  6.  
  7.     <!-- "cookie_swap" is a reference from chrome.manifest where the chrome directory is referenced-->
  8.     <script type="application/x-javascript" src="chrome://cookie_swap/content/cookieSwap.js"></script>
  9.     <script type="application/x-javascript" src="chrome://cookie_swap/content/cookie.js"></script>
  10.     <script type="application/x-javascript" src="chrome://cookie_swap/content/ffComponents.js"></script>
  11.     <script type="application/x-javascript" src="chrome://cookie_swap/content/profileUI.js"></script>
  12.     <script type="application/x-javascript" src="chrome://cookie_swap/content/cookieProfile.js"></script>
  13.     <script type="application/x-javascript" src="chrome://cookie_swap/content/cookieProfileContainer.js"></script>
  14.    <script language="JavaScript">
  15.       //Catch the Load event to init cookieSwap
  16.       try{window.addEventListener("load", cookieswap_init, true);}catch(e){}
  17.    </script>
  18.  
  19.     <!-- Capture what item we are overlaying...the existing "status-bar" item
  20.      NOTE: everything from this point on looks exactly like how the original
  21.      "status-bar" item (not overlay) would be constructed. -->
  22.    <statusbar id="status-bar" class="chromeclass-status">
  23.          <!-- "context" is the popup panel used -->
  24.       <statusbarpanel id="cookieSwap-panel" 
  25.          tooltip="cookieswap-tooltip"
  26.          context="cookie-element-list" 
  27.          ondblclick="cookieswap_statusBarDblClick()"  >
  28.          <hbox>
  29.              <image src="chrome://cookieswap/skin/CookieSwap_tinyicon.png" />
  30.              <label id="cookieswap-label" value="CookieSwap" />
  31.          </hbox>
  32.      </statusbarpanel>
  33.    </statusbar>
  34.  
  35.  <popupset id="mainPopupSet">
  36.      <popup id="cookie-element-list">
  37.  
  38.        <menuseparator id="cookie-profile-list-separator" />
  39.  
  40.        <menuitem label="Remove all cookies" oncommand="cookieswap_UiRemoveAllCookies()" />
  41.        <menuitem label="Remove all cookies (all profiles)" oncommand="cookieswap_UiRemoveAllCookiesInAllProfiles()" />
  42.        <menuitem label="Manage profiles"    oncommand="cookieswap_manageProfiles()" />
  43.  
  44. <!--OLD or TEST MENU ITEMS
  45.          <menuitem label="generic" oncommand="cookieswap_runGeneric()" />
  46.          <menuitem label="debugOn" oncommand="cookieswap_turnOnDebug()" />
  47.  -->
  48.      </popup>
  49.      <tooltip id="cookieswap-tooltip" insertafter="backMenu">
  50.          <vbox flex="1">
  51.              <label id="cookieswap-tooltip" value="CookieSwap"/>
  52.          </vbox>
  53.      </tooltip>
  54.  </popupset>
  55.  
  56. <!-- Finish the changes to the statusbar -->
  57.  
  58. </overlay>
  59.